import Mock from "mockjs";


Mock.mock("/api/classify", {
    code: 200,
    "classify|4": [{
        "id": "@id",
        "name": "@cword(2)",
        "info|4-10": [{
            "id": "@id",
            "title": "@ctitle(4)",
        }]
    }]
})

Mock.mock("/api/list", {
    code: 200,
    "list": [{
        "id": "@id",
        "imgs|2": ["@image(150x100,@color)"],
        "conone|3-4":[{
            "id": "@id",
            "title": "@ctitle(5,8)",
            "img": "@image(100x100,@color)",
             "desc": "@cword(5,7)",
        }],
        "contwo|4": [{
            "id": "@id",
            "name": "@ctitle(2)",
            "info|10": [{
                "id": "@id",
                "img": "@image(100x100,@color)",
                "title": "@ctitle(5,8)",
                "desc": "@cword(5,7)",
            }]
        }]
    }]
})
Mock.mock("/api/sort", {
    code: 200,
    "sort|2": [{
        "id": "@id",
        "name":"@cword(3,5)",
        "conone|3-4":[{
            "id": "@id",
            "title": "@ctitle(5,8)",
            "img": "@image(100x100,@color)",
             "desc": "@cword(5,7)",
             "name":"@cname(2,4)"
        }],
    }]
})
